package com.foreknow.elmboot.service.impl;

import com.foreknow.elmboot.mapper.UserMapper;
import com.foreknow.elmboot.po.User;
import com.foreknow.elmboot.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User getUserByIdByPass(String userId, String password) throws Exception {
        return userMapper.getUserByIdByPass(userId,password);
    }

    @Override
    public int saveUser(String userId,String password,String userName,String userSex) throws Exception {
        return userMapper.saveUser(userId,password,userName,userSex);
    }
}
